package flow;

public class StringConstruct {
    public static void main(String[] args) {
        char[] c={'A','B','C','D','E','F','G','H'};
        String s1=new String();
        String s2=new String(c);
        String s3=new String(c,5,3);//offset偏移量   ，//count总数3
        String s4=new String("XYZ");
        System.out.println("s1="+s1);
        System.out.println("s2="+s2);
        System.out.println("s3="+s3);
        System.out.println("s4="+s4);


    }
}
